# cmake needs this line
cmake_minimum_required(VERSION 3.1)

# Enable C++11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

# Define project name
project(opencv_example_project)

# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI
find_package(OpenCV REQUIRED)

# If the package has been found, several variables will
# be set, you can find the full list with descriptions
# in the OpenCVConfig.cmake file.
# Print some message showing some of them
message(STATUS "OpenCV library status:")
message(STATUS "    config: ${OpenCV_DIR}")
message(STATUS "    version: ${OpenCV_VERSION}")
message(STATUS "    libraries: ${OpenCV_LIBS}")
message(STATUS "    include path: ${OpenCV_INCLUDE_DIRS}")

# Declare the executable target built from your sources
#add_executable(example_camera_dis example_camera_dis.cpp)
#add_executable(demo_mat demo_mat.cpp)
#add_executable(demo_facedetect facedetect.cpp)
#add_executable(demo_edge edge.cpp)
#add_executable(first_show_picture first_show_picture.cpp)
#add_executable(demo_cvtcolor demo_cvtcolor.cpp)
# add_executable(demo_create_mat_image demo_create_mat_image.cpp)
add_executable(drtuning algori_drtuning.cpp algori_test.cpp)
#add_executable(demo_image_erosion demo_image_erosion.cpp)
#add_executable(demo_image_blur_ave_filter demo_image_blur_ave_filter.cpp)
#add_executable(demo_line_rectangle_circle demo_line_rectangle_circle.cpp)

# Link your application with OpenCV libraries
#target_link_libraries(example_camera_dis PRIVATE ${OpenCV_LIBS})
#target_link_libraries(demo_mat PRIVATE ${OpenCV_LIBS})
#target_link_libraries(demo_facedetect PRIVATE ${OpenCV_LIBS})
#target_link_libraries(demo_edge PRIVATE ${OpenCV_LIBS})
#target_link_libraries(first_show_picture ${OpenCV_LIBS})
#target_link_libraries(demo_cvtcolor ${OpenCV_LIBS})
#target_link_libraries(demo_create_mat_image ${OpenCV_LIBS})
target_link_libraries(drtuning ${OpenCV_LIBS})
#target_link_libraries(demo_image_erosion ${OpenCV_LIBS})
#target_link_libraries(demo_image_blur_ave_filter ${OpenCV_LIBS})
#target_link_libraries(demo_line_rectangle_circle ${OpenCV_LIBS})